package br.com.fidalgotecnologia.layar.itg;

import br.com.fidalgotecnologia.layar.data.ObjectDAO;

public class ItgObject {
	private static ItgObject instance;

	public static ItgObject getInstance() {
		if(instance == null){
			instance = new ItgObject();
		}
		return instance;
	}
	
	public byte[] getFile(br.com.fidalgotecnologia.layar.entity.Object object){
		return ObjectDAO.getInstance().buscarObject(object).getFile();
	}
	public byte[] getReducedFile(br.com.fidalgotecnologia.layar.entity.Object object){
		return ObjectDAO.getInstance().buscarObject(object).getReducedFile();
	}
	
}
